package com.car.dao.user;

import com.car.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author 贾勇
 * 登录
 */
@Repository
public interface UserDao {
    /**
     * @param user
     * @return
     */
    User userLogin(User user);

    User getUserById(int userId);

    List<User> getAllUser();

    User getUserByName(String userName);
}
